import { EquipmType } from "../../consts/equipm_type";
import { QualityType } from "../../consts/quality_type";
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from "typeorm";
import { Player } from "../player.entity";
 
@Entity("equipm")
export class Equipm {
    @PrimaryGeneratedColumn()
    id:string;
    imgUrl?:string;
    imgName?:string;
    name?:string;
    @Column()
    type:EquipmType;
    @Column()
    level:number;
    @Column()
    qualityType:QualityType;
   
    @ManyToOne(()=>Player, { lazy: true})
    player:Promise<Player>|Player;


}